package com.android.ringing;

import android.app.Application;

import com.android.ringing.imagecache.ImageLruCache;

public class RingingApplication extends Application {

	public static RingingApplication context;
	private float mDensity;
	private static int mLongest;
	private static ImageLruCache mImageLruCache;

	public static ImageLruCache getImageLruCache() {
		return mImageLruCache;
	}

	public static void setImageLruCache(ImageLruCache mImageLruCache) {
		RingingApplication.mImageLruCache = mImageLruCache;
	}

	public void setDensity(float density) {
		this.mDensity = density;
	}

	public float getDensity() {
		return mDensity;
	}

	public static void setLongest(int l) {
		mLongest = l;
	}

	public static int getLongest() {
		return mLongest;
	}

	@Override
	public void onCreate() {

		super.onCreate();
		context = this;
		 mImageLruCache = ImageLruCache.findOrCreateCache(this, "imgs");
	}
}
